package fat
{

import com.fit4as.fit.*;

public class FixtureLoadFixture extends ColumnFixture {
    public var FixtureName : String;

    public function LoadResult() : String {
        doLoadFixture();
        return "loaded";    // we'll get an exception if it didn't load
    }

    private function doLoadFixture() : void {
        var fixture : Fixture = new Fixture();
        fixture.loadFixture(FixtureName);
    }

    public function ErrorMessage() : String {
        var result : String;
        try {
            doLoadFixture();
            result = "(none)";
        }
        catch (err : Exception) {
            result = err.message;
        }
        return result;
    }
}



}
